/*
 * @Author: xiehangyun
 * @Date: 2025-02-20 09:26:10
 * @Last Modified by: xiehangyun
 * @Last Modified time: 2025-02-20 16:53:08
 */

import { observable, configure } from 'mobx';
configure({ enforceActions: 'never' });

//裁剪弹窗状态
const croppingModelStore = observable(
  {
    //需要裁剪的图片url
    url: '',
    setUrl(url: string = '') {
      this.url = url;
    },

    //加载中
    loading: false,
    setLoading(loading: boolean) {
      this.loading = loading;
    }
  },
  {},
  { deep: false },
);

export default croppingModelStore;
